<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="yongjian.drp.model.User" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";

User user = (User)session.getAttribute("user");
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>分销资源计划</title>
    
    <link rel="stylesheet" type="text/css" href="js/themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="js/themes/icon.css">
	<link rel="stylesheet" type="text/css" href="css/common.css">
    <script type="text/javascript" src="js/jquery.min.js"></script>
	<script type="text/javascript" src="js/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="js/locale/easyui-lang-zh_CN.js"></script>
   
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->	
	<script type="text/javascript">
		$(function(){
			$('a[title]').click(function(){
				var src = $(this).attr('title');
				var title = $(this).html();
				if($('#tabs').tabs('exists',title)){
					$('#tabs').tabs('select',title);
				} else {
					$('#tabs').tabs('add',{
						title:title,
						content:'<iframe frameborder=0 style=width:100%;height:100% src='+ src +' ></iframe>', 
						closable:true
					});
				};
			});
			
			$('#tree').tree({   
				url:'json/client_list.action'  			  
			});

		});
		
	</script>
	
  </head>
  
  <body>
  	<img src="imgs/top.jpg" width="100%"/>
  	<div align="right" style="padding:5px;background:#CECEFF;">
	  	欢迎回来   <b> <%=user.getUsername() %></b>&nbsp;&nbsp;&nbsp;
	  	<a title="jsp/user/user_pwModify.jsp">修改密码</a>&nbsp;&nbsp;&nbsp;
	  	<a href="logout.jsp">退出登陆</a>&nbsp;
  	</div>
	<div id="layout" class="easyui-layout" fit=true>  
      <div region="west"  title="菜单" style="width:200px;">
		  <div id="accordion" class="easyui-accordion" style="width:200px;height:485px;">  		
			  <div title="用户管理" iconCls="icon-user" style="overflow:auto;padding:10px;">
			  	<img src="js/themes/icons/user_add.png">&nbsp;<a title="jsp/user/user_add.jsp"> 添加用户</a><br><br>
			  	<img src="js/themes/icons/grid.png">&nbsp;<a title="jsp/user/user_list.jsp"> 用户列表</a><br><br>
			  </div>  		
			  <div title="物料管理" iconCls="icon-shopping" style="padding:10px;">
			  	<img src="js/themes/icons/shopping.png">&nbsp;<a title="jsp/item/item_add.jsp">添加物料</a><br><br>
			  	<img src="js/themes/icons/grid.png">&nbsp;<a title="jsp/item/item_list.jsp">物料列表</a>
			  </div> 
			  <div title="分销商管理" iconCls="icon-tv" style="padding:10px;">
			  	<img src="js/themes/icons/grid.png">&nbsp;<a title="jsp/client/client_list.jsp">分销商列表</a><br><br>
			  	<img src="js/themes/icons/search.png">&nbsp;<a title="jsp/client/client_search.jsp">搜索分销商</a>			  	 			  	
			  </div>
			  <div title="流向单管理" iconCls="icon-table" style="padding:10px;">
			  	<img src="js/themes/icons/table_gear.png">&nbsp;<a title="jsp/flowCard/flowCard_list.jsp">维护流向单</a><br><br>
			  	<img src="js/themes/icons/table_sort.png">&nbsp;<a title="jsp/flowCard/flowCardDetail_refer.jsp">查看流向单</a><br><br>
			  	<img src="js/themes/icons/table_go.png">&nbsp;<a title="jsp/flowCard/flowCard_check.jsp">审核流向单</a><br><br>
			  	<img src="js/themes/icons/table_go.png">&nbsp;<a title="jsp/flowCard/flowCard_spot.jsp">抽查流向单</a><br><br>
			  	<img src="js/themes/icons/table_refresh.png">&nbsp;<a title="jsp/flowCard/flowCard_recheck.jsp">复审流向单</a><br><br>			  	
			  </div> 
			  <div title="统计报表管理" iconCls="icon-chart" style="padding:10px;">
			  	<img src="js/themes/icons/chart_pie.png">&nbsp;<a title="jsp/report/itemChart.jsp">物料需求折线图</a><br><br>			  	 			  	
			  </div>		 		
		 </div>  	
      </div>  
      <div region="center" style="padding:5px;background:#eee;">
      	<div id="tabs" class="easyui-tabs" fit=true"></div>
      </div>  
  	</div>  
  </body>
</html>
